//
//  KVNHouseSummary.m
//  Test1
//
//  Created by KelvinYeung on 15/7/19.
//  Copyright (c) 2015年 KelvinYeung. All rights reserved.
//

#import "KVNHouseSummary.h"

@implementation KVNHouseSummary

#pragma mark 初始化对象
- (KVNHouseSummary *) initWithDictionary:(NSDictionary *)dic{
    if(self = [super init]){
        self.Id = [dic[@"id"] longLongValue];
        self.preferential = dic[@"preferential"];
        self.address = dic[@"address"];
        self.price = dic[@"price"];
        self.title = dic[@"title"];
        self.details = dic[@"title"];
        self.days = dic[@"days"];
        self.imageUrl = dic[@"imageUrl"];
    }

    return self;
}

+ (KVNHouseSummary *) summaryWithDictionary:(NSDictionary *)dic{
    KVNHouseSummary *summary = [[KVNHouseSummary alloc] initWithDictionary:dic];
    return summary;
}


@end
